import request from '@/utils/request'

// 查询转运任务单列表
export function listTranshipment(query) {
  return request({
    url: '/eim/transhipment/list',
    method: 'get',
    params: query
  })
}

// 查询转运任务单详细
export function getTranshipment(id) {
  return request({
    url: '/eim/transhipment/' + id,
    method: 'get'
  })
}

// 新增转运任务单
export function addTranshipment(data) {
  return request({
    url: '/eim/transhipment',
    method: 'post',
    data: data
  })
}

// 修改转运任务单
export function updateTranshipment(data) {
  return request({
    url: '/eim/transhipment',
    method: 'put',
    data: data
  })
}

// 删除转运任务单
export function delTranshipment(id) {
  return request({
    url: '/eim/transhipment/' + id,
    method: 'delete'
  })
}
